#include "Flow.h"

using namespace std;

Flow::Flow():f(map<pair<int, int>, bool>())
{
}

void Flow::swap(int u, int v)
{
  f[pair<int,int>(u, v)] = !f[pair<int,int>(u, v)];
}

void Flow::push(int u, int v, bool value)
{
  pair<int, int> p(u,v);
	
  f[pair<int, int>(u, v)] =  value;
}

bool Flow::value(int u, int v)
{
  return f[pair<int,int>(u, v)];
}
